namespace Gamov.DeleteSdData.Main.Frame.Attributes
{
    using System;
    using Microsoft.Extensions.DependencyInjection;

    public class ComponentAttribute : Attribute
    {
        public ComponentAttribute(Type interfaceType, ServiceLifetime lifeTime = ServiceLifetime.Scoped)
        {
            InterfaceType = interfaceType;
            LifeTime = lifeTime;
        }

        public Type InterfaceType { get; set; }
        public ServiceLifetime LifeTime { get; set; }
    }
}
